<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>首页 - 用户中心-接口</title>
</head>
<body>
	${rootPath } --->
	<table width="80%" border="1">
		<tr>
			<td>名称</td>
			<td>链接</td>
		</tr>
		<tr>
			<td>接口格式</td>
			<td>
				<form action="${rootPath }/outer/client.htm" method="post"
					target="blank">
					上行参数:
					<textarea rows="20" cols="100" name="json">
{
    /* 版本 */
	"version":"1",
	/* 方法名 */
	"method","method",
	/* 公钥,邮箱 */
	"pubKey","",
	/* 当时时间戳 */
	"time":"",
	/* 加密字符串:version + pubKey + time, HmacUtils.hmacMd5Hex("私钥", "加密字符串"); */
	"encrypt":"",
    /* 数据 */
	"data":
	{
	}
}
						</textarea>
					<input type="submit" value="提交">
				</form>
			</td>
		</tr>
		<tr>
			<td>验证用户Token</td>
			<td>上行参数: <textarea rows="10" cols="100" name="json">
{
	"version":"1",
	"method":"verifyUsersToken",
	"pubKey":"",
	"time":"",
	"encrypt":"",
	"data":
	{
		"token":""
	}
}
</textarea>
			</td>
		</tr>
		<tr>
			<td>验证管理员Token</td>
			<td>上行参数: <textarea rows="10" cols="100" name="json">
{
	"version":"1",
	"method":"verifyAdminsToken",
	"pubKey":"",
	"time":"",
	"encrypt":"",
	"data":
	{
		"token":""
	}
}
</textarea>
			</td>
		</tr>
		<tr>
			<td>验证管理员权限</td>
			<td>上行参数: <textarea rows="10" cols="100" name="json">
{
	"version":"1",
	"method":"verifyAdminsAuth",
	"pubKey":"",
	"time":"",
	"encrypt":"",
	"data":
	{
	    /* 管理员id */
		"adminsId":"",
		/* 当前访问的Url */
		"currentUrl":"",
	}
}
</textarea>
			</td>
		</tr>
		<tr>
			<td>获取用户信息(用户公钥)</td>
			<td>
				上行参数:
				<textarea rows="10" cols="100" name="json">
{
	"version":"1",
	"method":"usersInfo",
	"pubKey":"",
	"time":"",
	"encrypt":"",
	"data":
	{
		
	}
}
</textarea>
			</td>
		</tr>
		<tr>
			<td>地区详情(系统公钥)</td>
			<td>
				上行参数:
				<textarea rows="10" cols="100" name="json">
{
	"version":"1",
	"method":"regionOne",
	"pubKey":"",
	"time":"",
	"encrypt":"",
	"data":
	{
		/* 地区的id */
		"id":"102"
	}
}
</textarea>
			</td>
		</tr>
		<tr>
			<td>地区详情(id查询多条)(系统公钥)</td>
			<td>上行参数: <textarea rows="10" cols="100" name="json">
{
	"version":"1",
	"method":"regionBatchOne",
	"pubKey":"",
	"time":"",
	"encrypt":"",
	"data":
	{
		"ids":["1","2"]
	}
}
</textarea>
			</td>
		</tr>
		<tr>
			<td>地区列表(系统公钥)</td>
			<td>
				上行参数:
				<textarea rows="10" cols="100" name="json">
{
	"version":"1",
	"method":"regionList",
	"pubKey":"",
	"time":"",
	"encrypt":"",
	"data":
	{
		/* 查询当前id的子节点;0:表示查询一级节点 */
		"parentId":"0",
		/* 分页信息;0:不分页;1:分页 */
		"pageFlag":"0",
		/* 当前页 */
		"currentPage":"1",
		/* 每页多少条 */
		"pageSize":"10",
	}
}
</textarea>
			</td>
		</tr>
		<tr>
			<td>分类详情(查询一条)(系统公钥)</td>
			<td>上行参数: <textarea rows="10" cols="100" name="json">
{
	"version":"1",
	"method":"cateOne",
	"pubKey":"",
	"time":"",
	"encrypt":"",
	"data":
	{
		"id":"1",
	}
}
</textarea>
			</td>
		</tr>
		<tr>
			<td>分类批量查询(id查询多条)(系统公钥)</td>
			<td>上行参数: <textarea rows="10" cols="100" name="json">
{
	"version":"1",
	"method":"cateBatchOne",
	"pubKey":"",
	"time":"",
	"encrypt":"",
	"data":
	{
		"ids":["1","2"],
	}
}
</textarea>
			</td>
		</tr>
		<tr>
			<td>分类列表(查询多条)(系统公钥)</td>
			<td>
				上行参数:
				<textarea rows="10" cols="100" name="json">
{
	"version":"1",
	"method":"cateList",
	"pubKey":"",
	"time":"",
	"encrypt":"",
	"data":
	{
		/* 查询当前id的子节点;0:表示查询一级节点 */
		"parentId":"0",
		/* 分类类型:0:课程分类,1:学习日报 */
		"cateType":"",
		/* 分页信息;0:不分页;1:分页 */
		"pageFlag":"0",
		/* 当前页 */
		"currentPage":"1",
		/* 每页多少条 */
		"pageSize":"10",
	}
}
</textarea>
			</td>
		</tr>
		<tr>
			<td>查询角色所拥有菜单(系统公钥)</td>
			<td>
				上行参数: <textarea rows="10" cols="100" name="json">
{
	"version":"1",
	"method":"getRoleMenu",
	"pubKey":"",
	"time":"",
	"encrypt":"",
	"data":
	{
		"adminsId":"1",
	}
}
</textarea> 
			</td>
		</tr>
		<tr>
            <td>说明</td>
            <td>
用户公钥:需要到登陆之后查看api列表;
系统公钥:服务与服务之间调用;
            </td>
            <td>响应体:
            </td>
        </tr>
	</table>
</body>
</html>